package com.ruoyi.sale.service;

import com.ruoyi.sale.domain.ErpWarehouseOut;

import java.util.List;
import java.util.Map;

public interface IErpWarehouseOutService {
    /**
     * 查询出库单
     */
    ErpWarehouseOut selectErpWarehouseOutById(Long id);

    /**
     * 查询出库单列表
     */
    List<ErpWarehouseOut> selectErpWarehouseOutList(ErpWarehouseOut erpWarehouseOut);

    /**
     * 新增出库单
     */
    int insertErpWarehouseOut(ErpWarehouseOut erpWarehouseOut);

    /**
     * 修改出库单
     */
    int updateErpWarehouseOut(ErpWarehouseOut erpWarehouseOut);

    /**
     * 删除出库单
     */
    int deleteErpWarehouseOutById(Long id);

    /**
     * 批量删除出库单
     */
    int deleteErpWarehouseOutByIds(Long[] ids);

    /**
     * 完成出库操作
     */
    int completeOut(Long id);

    /**
     * 添加到销售汇总表
     */
    int addToSalesSummary(Long outId);

    List<Map<String, Object>> getLogisticsCompanies();
}
